# 计科1915班 0306224505 屠玉宝
import re


def mima(pwd):
    regex = r'^[a-zA-Z0-9]+$'
    if re.match(regex, pwd):
        if len(pwd) <= 8 or pwd.isdigit() or pwd.isalpha():
            print("低级密码合格")
        elif len(pwd) > 8:
            print("高级级密码合格")
    else:
        print("不合格")


if __name__ == '__main__':
    print("-----注册-----")
    passwd = input("请输入密码：")
    mima(passwd)
